package com.wudl.db.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @ClassName : MyDataSource
 * @Description :
 * @Author :wudl
 * @Date: 2021-08-06 00:02
 */
public class MyDataSource extends AbstractRoutingDataSource {
    protected Object determineCurrentLookupKey() {
        return MyThreadLocal.getDataSource();
    }
}
